<?php
$cs=Yii::app()->clientScript;
$cs->registerCssFile(Yii::app()->params->cssBaseUrl.'/themes/kitchen.css','screen');
$cs->registerCssFile(Yii::app()->params->cssBaseUrl.'/themes/user.css','screen');
?>

<div id="main" class="main650">
  <div id="main-cont-top-650"></div>
  
  <div id="one-col">
    <div id="user">
      <?php echo CHtml::beginForm(); ?>
      <?php echo CHtml::errorSummary($form,null,null,array('class'=>'alert')); ?>

      <h2 class="title">注册</h2>
      <div class="cont-wrapper">
        <h3>
          <?php echo CHtml::image(Yii::app()->params->sysImageBaseUrl.'/themes/user/globe.gif','Globe',array('class'=>'user-form-icon')); ?>
          <?php echo CHtml::image(Yii::app()->params->sysImageBaseUrl.'/themes/user/vcard.gif','Globe',array('class'=>'user-form-icon')); ?>
          公开资料
        </h3>

        <table class="user-table" >
          <tr>
            <th>
              <?php echo CHtml::activeLabel($form,'id'); ?>
            </th>
            <td>
              <?php echo CHtml::activeTextField($form,'id',array('maxlength'=>20,'size'=>20,'style'=>'width: 120px;')); ?>
              <div class="notice" style="margin-top: 5px;">
                ※登录帐号仅限字母数组下划线的组合
              </div>
            </td>
          </tr>
          <tr>
            <th>
              <?php echo CHtml::activeLabel($form,'name'); ?>
            </th>
            <td>
              <?php echo CHtml::activeTextField($form,'name',array('maxlength'=>20,'size'=>20,'style'=>'width: 120px;')); ?>
            </td>
          </tr>
          <tr>
            <th>
              <?php echo CHtml::activeLabel($form,'description'); ?>
            </th>
            <td>
              剩余<span id="RegisterForm_description-length">200</span>文字<br />
              <?php echo CHtml::activeTextArea($form,'description',array('cols'=>40,'rows'=>6)); ?>
            </td>
          </tr>
        </table>
      </div>

      <div class="cont-wrapper">
        <h3>
          <?php echo CHtml::image(Yii::app()->params->sysImageBaseUrl.'/themes/user/locked.gif','Locked',array('class'=>'user-form-icon')); ?>
          非公开资料
        </h3>

        <table class="user-table">
          <tr>
            <th>
              <?php echo CHtml::activeLabel($form,'email'); ?>
            </th>
            <td>
              <?php echo CHtml::activeTextField($form,'email',array('size'=>30)); ?>
            </td>
          </tr>
        </table>

        <table class="user-table">
          <tr>
            <th>
              <?php echo CHtml::activeLabel($form,'password'); ?>
            </th>
            <td>
              <div class="error" id="password-presence-warning"></div>
              <div class="error" id="password-confirmation-warning"></div>
              <?php echo CHtml::activePasswordField($form,'password',array('size'=>30)); ?>
            </td>
          </tr>
          <tr>
            <th>
              <?php echo CHtml::activeLabel($form,'passwordRepeat'); ?>
            </th>
            <td>
              <?php echo CHtml::activePasswordField($form,'passwordRepeat',array('size'=>30)); ?>
            </td>
          </tr>
        </table>      
        <div class="center">
          <?php echo CHtml::submitButton('注册'); ?>
        </div>      
      </div>
      <?php echo CHtml::endForm(); ?>
    </div>
  </div>

  <div class="clear"></div>
  <div id="main-cont-bottom-650"></div>
</div>

<?php 
$this->renderPartial('/side/ad');    
?>